<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
		<script>
			let promise = axios.post("users", {
					page: 1,
					pageSize: 10
				}, {
					baseURL: "http://localhost:8080"
				})

				//获取结果
				promise.then(res => {
					//判断状态码
					if (res.status == 200) {
						//接受接口返回的结果
						let rs = res.data;
						console.log("===", rs);
					}
				})
				.catch(e => {
					console.log("e==", e)
				})

			console.log("没有加async 不按照顺序执行")
		</script>
	</head>
	<body>
	</body>
</html>